<?php

$dbconf = require_once 'db.php';


//Test

$conf = array(
	//'配置项'=>'配置值'
	
	'SiteUrl' =>	'https://www.yuzhuli.com/',

    'UPLOAD_PATH'   => 'Public/upload_new',
	
    /* 数据缓存设置 */
    'DATA_CACHE_TIME'       =>  1,      // 数据缓存有效期 0表示永久缓存

    // Think模板引擎标签库相关设定
    'TAGLIB_BEGIN'          =>  '<',  // 标签库标签开始标记
    'TAGLIB_END'            =>  '>',  // 标签库标签结束标记 
    'DEFAULT_THEME'    => 'default',
    'LAYOUT_ON'=>true,
    'LAYOUT_NAME'=>'layout',
    
	//默认错误跳转对应的模板文件
	'TMPL_ACTION_ERROR' => '../../../Common/View/dispatch_jump',
	//默认成功跳转对应的模板文件
	'TMPL_ACTION_SUCCESS' => '../../../Common/View/dispatch_jump',
	
    /* URL设置 */
    'URL_CASE_INSENSITIVE'  =>  true,   // 默认false 表示URL区分大小写 true则表示不区分大小写
    'URL_MODEL'             =>  1,       // URL访问模式,可选参数0、1、2、3,代表以下四种模式：
    // 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE  模式); 3 (兼容模式)  默认为PATHINFO 模式
    'URL_PATHINFO_DEPR'     =>  '/',    // PATHINFO模式下，各参数之间的分割符号
	
	'ADMIN_AUTH_KEY'    => 'admin',
	'USER_AUTH_ON'      => '1',
	'USER_AUTH_TYPE'    => '1',
    'RBAC_ROLE_TABLE'   => 'yzl_rbac_role',
    'RBAC_USER_TABLE'   => 'yzl_rbac_role_manager',
    'RBAC_ACCESS_TABLE' => 'yzl_rbac_access',
    'RBAC_NODE_TABLE'   => 'yzl_rbac_node', 

  
    //阿里大鱼
	"AlidayuAppKey"=>"23566275",
	"AlidayuAppSecret"=>"85e7c44fa8e2e3cd623ce4da133c1628",
	
	//环信配置
	'options'=> array(
    	'client_id'=>'YXA6eQ1OQMv1EeazoGPHl-CFWQ',
	    'client_secret'=>'YXA6dfDK7MBr27SBilj6vySsGuFIorg',
		'org_name'=>'1131161219115819',
		'app_name'=>'yzl',
	),

    'LOG_RECORD' => true, // 开启日志记录
	'LOG_LEVEL'  =>'DEBUG',
	'LOG_TYPE'              =>  'File',

    'alipay'    => [
        'notify_url'            => 'http://www.yuzhuli.com/api.php/Pay/ali_notify', 
        'return_url'            => 'http://mov30.weixinzjit.com/V3/Alipay/returnurl',
        'seller_email'          => '13524625822@139.com',
        'partner'               => '2088031711750913', 
        'key'                   => 'lo1napa166wkv3m5r10clhbu81zmb6gh',
        'privateKey'            => THINK_PATH.'../cert/rsa_private_key.pem',
        'publicKey'             => THINK_PATH.'../cert/rsa_public_key.pem',
        'wap'                   => [
            'app_id'            => '2018032802462151',
            'rsa_public_key'    => THINK_PATH.'../cert/wap_rsa_private_key.pem',
            'ali_public_key'    => THINK_PATH.'../cert/wap_ali_public_key.pem',
        ],
    ],
    'wechat'    => [
        'appid'         => "wx9ec9195e80e812da",// 微信APP应用appid
        'appsecret'     => 'd362268adb79c30b8269ac92bdcf1279',// 微信APP应用appsecret
        'fw_app_id'     => 'wx06900aa14b6ded59',// 服务号appid
        'fw_secret'     => '0f0cc2a62b36823f18213624336d7802',//服务号appsecret
        'dy_app_id'     => 'wx06900aa14b6ded59',// 订阅号appid
        'dy_secret'     => '0f0cc2a62b36823f18213624336d7802',//订阅号appsecret
        'mch_id'        => "1502288031",// 商户号
        'api_key'       => "a0ea023a3bea4a172f327896490c31af",// 商户key
        'notify_url'    => 'http://www.yuzhuli.com/api.php/Pay/notify',
        'sslcert_path'  => THINK_PATH.'../wxcert/apiclient_cert.pem',
        'sslkey_path'   => THINK_PATH.'../wxcert/apiclient_key.pem',
    ],
    'qq'    => [
        'web_appid'     => '101869451',
        'web_appkey'    => 'dbff896d9d8bfdcb3735591cbecbf66e',
    ],
    'WITHDRAWALS_STATUS'=>[
        '1' => '申请中',
        '2' => '申请成功',
        '3' => '申请失败',
    ],
    'ORDER_RETURN_TYPE' => [
        '1' => '售前退款',
        '2' => '售后退款',
    ],
    'ORDER_RETURN_STATUS' => [
        '1' => '申请中',
        '2' => '通过',
        '3' => '拒绝',
        '4' => '发货',
        '5' => '完成',
    ],
);

return array_merge($dbconf,$conf);
